package com.sq.partner.manager.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sq.partner.manager.dao.ITradPlanGroupDao;
import com.sq.partner.manager.mybatis.model.TradInsuPlan;
import com.sq.partner.manager.mybatis.model.TradPlanGroup;
import com.sq.partner.manager.service.ITradPlanGroupService;
import com.sq.partner.manager.util.Page;
@Service
public class TradPlanGroupServiceImpl implements ITradPlanGroupService {

	@Resource
	ITradPlanGroupDao groupdao;
	
	@Override
	public TradPlanGroup queryTradPlanGroupID(TradPlanGroup group) throws Exception {
		return groupdao.queryTradPlanGroupID(group);
	}

	@Override
	public Page<TradPlanGroup> queryPage(Page<TradPlanGroup> page)
			throws Exception {
		return groupdao.queryPage(page);
	}

	@Override
	public boolean addTradPlanGroup(TradPlanGroup group) throws Exception {
		return groupdao.addTradPlanGroup(group);
	}

	@Override
	public boolean editTradPlanGroup(TradPlanGroup group) throws Exception {
		return groupdao.editTradPlanGroup(group);
	}

	@Override
	public boolean deleteTradPlanGroup(Long id) throws Exception {
		return groupdao.deleteTradPlanGroup(id);
	}

	@Override
	public Page<TradInsuPlan> queryTradInsuPlanPage(Page<TradInsuPlan> page,Long groupId,String partnerCode)
			throws Exception {
		return groupdao.queryTradInsuPlanPage(page,groupId,partnerCode);
	}

	@Override
	public List<TradPlanGroup> queryGroupByMap(Map<String, Object> map )  throws Exception {
	
		return groupdao.queryGroupByMap(map);
	}

	@Override
	public Page<Map<String,Object>> queryGroupByPage(Page<Map<String,Object>> page)
			throws Exception {
		// TODO Auto-generated method stub
		return groupdao.queryGroupByPage(page);
	}

	@Override
	public Page<Map<String, Object>> queryGroupPlanByPage(
			Page<Map<String, Object>> page) throws Exception {
		return groupdao.queryGroupPlanByPage(page);
	}

	@Override
	public List<Map<String, Object>> impGroupPlan(Map<String, Object> map)
			throws Exception {
		return groupdao.impGroupPlan(map);
	}

}
